#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>

void swap(float* p1, float* p2)
{
	float* start = p1;
	int i = 4; int j;
	while (i)
	{
		j = 4;
		while (j)
		{
			if (*p1 > *p2)
			{
				float tmp = *p1;
				*p1 = *p2;
				*p2 = tmp;
			}
			p1++; p2++; j--;
		}
		p1 = start; p2 = p1 + 1; i--;
	}

}
int main()
{
	float arr[10] = { 0 };
	while (scanf("%f%f%f%f%f", &arr[0], &arr[1], &arr[2],&arr[3],&arr[4]) == 5)
	{
		swap(&arr[0], &arr[1]);
		int i = 0;
		for (i = 0; i < 5; i++)
		{
			printf("%.1f ", arr[i]);
		}
		printf("\n");
	}
	return 0;
}